package com.hs.device;

import com.hs.common.api.dto.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author DYF
 * @data 2022-07-26
 * @desc
 */
@FeignClient(value = "device-service")
public interface DetectorFeignClient {

    @PutMapping("/detector/bindDevice")
    ResultVo bindDevice(
            @RequestParam("detectorId")Integer detectorId,
            @RequestParam ("berthId")Long berthId
    );
}
